package com.whtq.api.remote.b;

import com.whtq.api.remote.config.FeignConfig;
import com.whtq.db.entity.TBTest;
import com.whtq.db.model.BTestReq;
import com.whtq.front.common.model.response.PageRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * Created by
 *
 * @author wmi
 * @date 2021/9/15 - 15:53.
 * @description
 */
//@FeignClient(name = "whtq-b",path = "/v1/b",configuration = FeignConfig.class)
@FeignClient(name= "whtq-b",path = "/v1/b",url = "http://127.0.0.1:1002",configuration = FeignConfig.class)
public interface BRemoteService {

    /**
     * 保存
     * @param req
     * @return
     */
    @RequestMapping(value = "/saveBtest",method = RequestMethod.POST)
    int saveBtest(BTestReq req);

    /**
     * 查询列表
     * @param req
     * @return
     */
    @RequestMapping(value = "/btestList",method = RequestMethod.POST)
    PageRes btestList(BTestReq req);
    /**
     * 修改
     * @param req
     * @return
     */
    @RequestMapping(value = "/updBtest",method = RequestMethod.POST)
    int updBtest(BTestReq req);
    /**
     * 删除
     * @param ids
     * @return
     */
    @RequestMapping(value = "/delBtest",method = RequestMethod.POST)
    Boolean delBtest(List<Integer> ids);
    /**
     * 获取对象
     * @param req
     * @return
     */
    @RequestMapping(value = "/getBtest",method = RequestMethod.POST)
    TBTest getBtest(BTestReq req);
}
